﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="addVideo.aspx.cs" Inherits="Web.backStage.file.addVideo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>添加新闻</title>

    <script type="text/javascript" src="../js/date.js"></script>

    <link rel="stylesheet" rev="stylesheet" href="../css/style.css" type="text/css" media="all" />

    <script language="JavaScript" type="text/javascript">
    function link() {
        alert('保存成功！');
        document.getElementById("fom").action = "xuqiumingxi.htm";
        document.getElementById("fom").submit();
    }
    </script>

    <style type="text/css">
        <!
        -- .atten
        {
            font-size: 12px;
            font-weight: normal;
            color: #F00;
        }
        -- ></style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="MainDiv">
        <table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
            <tr>
                <th class="tablestyle_title">
                    影片添加页面
                </th>
            </tr>
            <tr>
                <td width="100%">
                    <fieldset style="height: 100%;">
                        <legend>添加影片 </legend>
                        <table border="0" cellpadding="2" cellspacing="1" style="width: 100%">
                            <tr>
                                <td nowrap="nowrap" align="right" width="13%">
                                    影片名称:
                                </td>
                                <td width="37%">
                                    &nbsp;<asp:TextBox ID="NameTxt" runat="server" Width="196px"></asp:TextBox>
                                    <span class="red">*</span>
                                </td>
                                <td align="right" width="21%">
                                    影片导演：
                                </td>
                                <td width="29%">
                                    <asp:TextBox ID="DirectorTxt" runat="server" Width="189px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" align="right" width="13%">
                                    影片类型:
                                </td>
                                <td width="37%">
                                    &nbsp;<asp:DropDownList ID="TypeDropList" runat="server">
                                        <asp:ListItem Value="1">恐怖片</asp:ListItem>
                                        <asp:ListItem Value="2">喜剧片</asp:ListItem>
                                        <asp:ListItem Value="3">动作片</asp:ListItem>
                                        <asp:ListItem Value="4">灾难片</asp:ListItem>
                                        <asp:ListItem Value="5">爱情片</asp:ListItem>
                                        <asp:ListItem Value="6">纪录片</asp:ListItem>
                                        <asp:ListItem Value="7">动画片</asp:ListItem>
                                        <asp:ListItem Value="8">科幻片</asp:ListItem>
                                        <asp:ListItem Value="9">惊悚片</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                                        ConnectionString="<%$ ConnectionStrings:iMovieConnectionString %>" 
                                        SelectCommand="SELECT [videoType_name] FROM [VideoType_Dic]">
                                    </asp:SqlDataSource>
                                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:iMovieDBConnectionString %>"
                                        SelectCommand="SELECT [videoType_name] FROM [VideoType_Dic]"></asp:SqlDataSource>
                                    <span class="red">*</span>
                                </td>
                                <td align="right" width="21%">
                                    主要演员：                                 </td>
                                <td width="29%">
                                    <asp:TextBox ID="ActorsTxt" runat="server" Width="189px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="13%" height="26" align="right" nowrap="nowrap">
                                    发布时间:
                                </td>
                                <td width="37%">
                                    <asp:TextBox ID="PublicDateTxt" runat="server" Width="193px"></asp:TextBox>
                                </td>
                                <td align="right" width="21%">
                                    影片语种：
                                </td>
                                <td width="29%">
                                    <asp:TextBox ID="LanguageTxt" runat="server" Width="189px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" align="right" width="13%">
                                    制造厂:
                                </td>
                                <td width="37%">
                                    <asp:TextBox ID="ManufactureTxt" runat="server" Width="194px"></asp:TextBox>
                                </td>
                                <td align="right" width="21%">
                                    产地：
                                </td>
                                <td width="29%">
                                    <asp:TextBox ID="LocationTxt" runat="server" Width="189px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" align="right" width="13%">
                                    影片海报:
                                </td>
                                <td width="37%">
                                    <asp:FileUpload ID="FileUpload2" runat="server" />
                                </td>
                                <td align="right" width="21%">
                                    文件上传：
                                </td>
                                <td width="29%">
                                    <asp:FileUpload ID="FileUpload1" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" align="right" width="13%">
                                    影片推荐指数:
                                </td>
                                <td width="37%">
                                    <asp:DropDownList ID="HotScoreDropList" runat="server">
                                        <asp:ListItem Value="1">一星</asp:ListItem>
                                        <asp:ListItem Value="2">二星</asp:ListItem>
                                        <asp:ListItem Value="3">三星</asp:ListItem>
                                        <asp:ListItem Value="4">四星</asp:ListItem>
                                        <asp:ListItem Value="5">五星</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td align="right" width="21%">
                                    试看：</td>
                                <td width="29%">
                                    &nbsp;
                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" align="right" height="10px">
                                    影片简介:
                                </td>
                                <td colspan="3">
                                    <asp:TextBox ID="BriefIntroTxt" runat="server" Height="92px" Width="432px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                        <br />
                    </fieldset>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center" height="50px">
                    <asp:Button ID="SaveBtn" runat="server" Text="保存" OnClick="SaveBtn_Click" />
                    <asp:Button ID="CancelBtn" runat="server" Text="取消" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
